package com.sbl.bajw.pc.service;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sbl.bajw.common.web.RequestUnit;
import com.sbl.bajw.mapper.JWTDeptModelDao;
import com.sbl.bajw.pc.model.DeptModel;

@Service
public class JWTDeptService {
	
	@Resource
	private JWTDeptModelDao dao;
	
	public List<DeptModel> getOrgManagerList(){
		String pid = RequestUnit.getString("pid");
		
		HashMap<String, Object> parm = new HashMap<String, Object>();
		parm.put("pid", pid);
		
		List<DeptModel> result = dao.getOrgManagerList(parm);
		return result;
	}
}
